//============================================================================
// Name        : card_info.h
// Author      : awhuck
// Version     :
// Copyright   : 
//============================================================================

#include "card/card_info.h"

CardInfo::CardInfo(string name, vector<vector<char> > cardCost, vector<Effect*> effects, string description)
{
	_name = name;
	_description = description;
	
	for(int i = 0; i < (int)cardCost.size(); i++)
	{
		vector<char> v;
		for(int j = 0; j < (int)cardCost[i].size(); j++)
		{
			v.push_back(cardCost[i][j]);
		}
		_cardCost.push_back(v);
	}
	
	for(int i = 0; i < (int)effects.size(); i++)
	{
		_effects.push_back(effects[i]);
	}
}

CardInfo::~CardInfo()
{
	for(int i = 0; i < (int)_effects.size(); i++)
	{
		delete _effects[i];
	}
}

/**
* The getCardCost function returns the cost of the card.
*/
vector<vector<char> > CardInfo::GetCardCost(){
	
	return _cardCost;		
}

/**
* Returns the card's effects.
*/
vector<Effect*> CardInfo::GetEffects(){
	
	return _effects;		
}

/**
* The getCardName function returns the name of the card.
*/
string CardInfo::GetCardName(){
	
	return _name;
}

/**
* Returns the card's description.
*/
string CardInfo::GetCardDescription(){
	
	return _description; 
}
